<%-- 
    Document   : PublishStream
    Created on : 17-Apr-2011, 04:15:36
    Author     : Jeremy Heng | Jaybles | Vxtherael
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean id="userInfo" class="Bean.Account.AccountSC" scope="session"/>
<%@ page import="jeremy.livestream.Stream" %>
<%@page import="Bean.Account.AccountSC"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Publish your Stream</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script type="text/javascript" src="assets/swfobject.js"></script>
        <script type="text/javascript">
        var flashVars = {
            streamName: "<% 
            AccountSC user = null;
            user = (AccountSC) session.getAttribute("userInfo");
            out.print(Stream.getHashedStreamName(user.getUserName())); %>"
        };
        swfobject.embedSWF("simpleBroadcaster.swf", "myContent", "400", "400", "8.0.0", "assets/expressInstall.swf", flashVars);
        </script>
    </head>
    <body>
        <h1>Sample Stream Publish</h1>

    </body>
</html>
